<?php

class Welcome extends Controller {

	function Welcome()
	{
		parent::Controller();	
	}
	
	function index()
	{
//		$this->load->model("news_m","n", TRUE);
//		$idx = $this->n->retr_frontpage_idx();
//
//		$this->load->view('header_view');
//
//		for($j=0; $j<count($idx); $j++){
//			$news = $this->n->retr_news($idx[$j]);
//			$data['id'][$j] = $news[0]["id"];
//			$data['title'][$j] = $news[0]["title"];
//			$data['date'][$j] = $news[0]["date"];
//			$data['introtext'][$j] = $news[0]["introtext"];
//			$data['fulltext'][$j] = $news[0]["fulltext"];
//			$data['author'][$j] = $news[0]["author"];
//			//echo $data['title'][$j];
//		}
//		$this->load->view('content_view', $data);
//
//
//		$this->load->view('footer_view');
                $data['page'] = 'home';
                $this->load->view('layout/main', $data);
	}
        
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */